﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using ObviousCode.Common.Utils.Interfaces;
using ObviousCode.Aspect.PluginLibrary.Interfaces;
using ObviousCode.Common.Utils.Library.Dictionaries;
using ObviousCode.Common.Utils.Library.Dictionaries.Persistance;

namespace ObviousCode.UI.Aspect.Persistence.AspectSurface.Savers
{
    public abstract class SurfaceSaver : Saver<IAspectSurface>
    {
        protected abstract override void PerformSave(IAspectSurface saveData);

        protected override string Tag
        {
            get { return SurfaceSaver.ObjectTag; }
        }

        public abstract override int Version { get; }

        public static SurfaceSaver LatestVersion
        { 
            get { return new SurfaceSaver_V1(); } 
        }

        public static string ObjectTag
        {
            get { return "aspect-surface"; }
        }
    }
}
